<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>欢迎注册</title>
  <style>
    body{
      font-family: "微软雅黑";
      background: url("img/1.jpg") no-repeat;
      background-attachment: fixed;
      background-size: cover;
      color: white;
      text-align: center;
    }

    .box{
      position: absolute;
      top:50%;
      margin-top: -200px;
      left: 50%;
      margin-left: -200px;
      border:1px solid black;
      width: 400px;
      height: 400px;
      background-color: #00000068;
      border-radius: 10px;
      box-shadow: 10px 10px 10px 10px rgba(0,0,0, .3);
    }
    .but{
      width: 40%;
      background-image: linear-gradient(120deg,#f6d365 0%,#fda085 100%);
      border-radius: 40px;
      border: 0px;
      font-size: 20px;
      color: white;
    }
    .but:hover{
      background-image:linear-gradient(to right,#b4731d 0%,#f16943 100%);
    }
    .box1{
      margin-top: 50px;
    }
    .box2{
      margin-top: 25px;
    }
    .box3{
      margin-top: 25px;
    }
    .box4{
      margin-top: 50px;
    }
    a{
      text-decoration: none;
    }
    .form-control{
      background-color: rgba(255,255,255,0);
      width: 60%;
      border: 0px;
      border-bottom: 2px solid silver;
      outline: none;
      color: white;
    }
    </style>
</head>
<body>

<div class="box">
    <h1>欢迎注册</h1>
  <form id="reg-form" action="/project1_war/mainUserRegisterServlet" method="post">
       <div class="box1">
         用户名<input name="mainuserName" type="text" id="mainuserName" class="form-control" required="ture">
       </div>

    <div class="box2">
      密码<input name="mainuserPassword" type="password" class="form-control" required="ture">

    </div>
       <div class="box3">
         手机号<input name="mainuserTel" type="text" class="form-control" required="ture">
       </div>

    <div class="box4">
      <input value="注 册" type="submit" class="but">

    <a href="/project1_war/MainUserLogin.jsp"><input type="button" value="返回" class="but"></a>
    </div>
  </form>

</div>

</body>
</html>